import { OmitPartial } from '/#/utils';
import { BasicPageParams, BasicModel, BasicFetchResult } from '/@/api/model/baseModel';

export interface BasicOpmsNoticeModel {
  /**
   * id
   */
  id: number;
  /**
   * 公告标题
   */
  titile: string;
  /**
   * 公告内容
   */
  content: string;
  /**
   * 摘要
   */
  summary: string;
  /**
   * 公告类型（系统公告、其他公告）
   */
  type: string;
}
/**
 * 后台开启id序列化时id类型为字符串，如果没开启id类型就是number,此处用一个动态类型代替，方便生成；
 */
export type OpmsNoticeIDType = BasicOpmsNoticeModel['id'];

export type UpdateOpmsNoticeParams = OmitPartial<BasicOpmsNoticeModel, 'id'>;

export type OpmsNoticeParams = Partial<BasicOpmsNoticeModel>;

export type OpmsNoticePageSearchParams = BasicPageParams & OpmsNoticeParams;

export type OpmsNoticeListSearchParams = OpmsNoticeParams;

export type OpmsNoticeModel = BasicModel & BasicOpmsNoticeModel;

export type OpmsNoticePageListGetResultModel = BasicFetchResult<OpmsNoticeModel>;

export type OpmsNoticeListGetResultModel = OpmsNoticeModel[];
